<#include "framework/frame.ftl">

<#macro title_info>server list</#macro>

<#macro frame_content>

<div class="ibox">
    <div class="ibox-heading">
        <div class="ibox-title">
                <label >服务列表</label>
                <label class="btn btn-primary btn-xs col-sm-offset-8" style="cursor: pointer;" onclick="switchOperatingOption(this)">显示操作选项卡</label>
            </div>


            <div class="ibox-oper" style="display: none">
                <form class="form-horizontal">
                    <div class="form-group">
                        <label class="col-sm-12 control-label">服务分类</label>
                        <div class="col-sm-3">
                            <input type="text" class="form-control" id="serverType" name="serverType" value=""
                                   placeholder="服务分类" maxlength="20"/>
                        </div>

                        <label class="col-sm-12 control-label">服务编码</label>
                        <div class="col-sm-3">
                            <input type="text" class="form-control" id="serverCode" name="serverCode" value=""
                                   placeholder='服务编码' maxlength="50"/>
                        </div>

                        <label class="col-sm-12 control-label">请求服务地址</label>
                        <div class="col-sm-3">
                            <input type="text" class="form-control" id="serverUrl" name="serverUrl" value=""
                                   placeholder="请求服务地址" maxlength="50"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-12 control-label">服务版本号</label>
                        <div class="col-sm-3">
                            <input type="text" class="form-control" id="serverVersion" name="serverVersion" value=""
                                   placeholder="服务版本号" maxlength="20"/>
                        </div>
                        <label class="col-sm-12 control-label">服务状态</label>
                        <div class="col-sm-3">
                            <#--服务状态（Y-可用，H-挂起，N-不可用,C-服务已下架）-->
                            <select name="serverStatus" id="serverStatus" class="form-control">
                                <option value="Y">可用</option>
                                <option value="H">挂起</option>
                                <option value="N">不可用</option>
                                <option value="C">服务已下架</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-sm-offset-8">
                        <button type="button" id = "generalQuery" class="btn btn-primary false btn-xs">提交</button>
                        <button type="reset"  id = "generalReset" class="btn btn-primary false btn-xs">重置</button>
                        &nbsp;&nbsp;&nbsp;
                        <button type="button" id="generalAdd" class="btn btn-primary false btn-xs "><i class="fa fa-plus" aria-hidden="true"></i>新增</button>
                        <button type="button" id="generalExport" class="btn btn-primary false btn-xs"><i class="fa fa-file" aria-hidden="true"></i>导出</button>
                    </div>
                </form>
            </div>

            <div class="ibox-content clearPadding">
                <div class="jqGrid_wrapper">
                    <table id="grid-table"></table>
                    <div id="grid-pager"></div>
                </div>
            </div>
        </div>
</div>
</#macro>

<#macro business_js>
<script type="text/javascript" src="/static/js/cloud-gateway/gatewayList.js"></script>
</#macro>
<@frame_html/>